package com.apes.fn.server.workDesk.repository;

import com.apes.fn.server.workDesk.model.UnsalableStock;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;

public interface UnsalableStockRepository extends CustomRepository<UnsalableStock,String> {

    @Transactional
    @Modifying
    @Query(value = "truncate table RCL_UNSALABLE_STOCK",nativeQuery = true)
    public void truncateTable();
}
